PdhIsGoodStatus (VB)

The Visual Basic PdhIsGoodStatus function tests a status value to determine if it is a success or failure code. If the status value is a successful one, then the return value will be nonzero. If it is a failure status code, the return value will be zero.

PdhIsGoodStatus(

    ByVal StatusValue as Long)

 

        as Long

 

 

Parameters

StatusValue

The PDH status value returned by another PDH function that is to be tested.

 

Return Values

The function returns zero if the status code is a failure status code. It returns nonzero if the status code is a success status code.